/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const statementRouter = {
  path: '/statement',
  component: Layout,
  name: 'statement',
  meta: {
    title: '報表管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'discount',
      component: () => import('@/views/statement/discount.vue'),
      name: 'discount',
      meta: { title: '優惠報表', noCache: true }
    },
    {
      path: 'player',
      component: () => import('@/views/statement/player.vue'),
      name: 'player',
      meta: { title: '陪玩報表', noCache: true }
    },
    {
      path: 'popularize',
      component: () => import('@/views/statement/popularize.vue'),
      name: 'popularize',
      meta: { title: '推廣報表', noCache: true }
    },
    {
      path: 'broker',
      component: () => import('@/views/statement/broker.vue'),
      name: 'broker',
      meta: { title: '經紀人報表', noCache: true }
    },

    {
      path: 'everyday',
      component: () => import('@/views/statement/everyday.vue'),
      name: 'everyday',
      meta: { title: '每日報表', noCache: true }
    },
    {
      path: 'today',
      component: () => import('@/views/statement/today.vue'),
      name: 'today',
      meta: { title: '當日賬變', noCache: true }
    },
  ]
};

export default statementRouter;
